package com.jrzh.mvc.view.sys;

import java.io.Serializable;
import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.jrzh.framework.base.view.GeneralView;

public class ResourcesView extends GeneralView implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3852117397702755525L;
	
	private String code;
	private String pid;
	private String name;
	private Integer type;
	private String typeName;
	private String url;
	private String icon;
	private String remark;
	private String iconCls;
	private Integer level;
	private String parentId;
	private String formId;
	private Boolean expanded;
	private Boolean isLeaf;
	private String backgroundUrl;
	private String iconUrl;
	private List<ResourcesView> resourceChilds;
	private String key;
	private String status;
	
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	/**
	 * 是否为自定义表单关联菜单
	 */
	private Boolean isCustom;
	
	public List<ResourcesView> getResourceChilds() {
		return resourceChilds;
	}
	public void setResourceChilds(List<ResourcesView> resourceChilds) {
		this.resourceChilds = resourceChilds;
	}
	public String getBackgroundUrl() {
		return backgroundUrl;
	}
	public void setBackgroundUrl(String backgroundUrl) {
		this.backgroundUrl = backgroundUrl;
	}
	public String getIconUrl() {
		return iconUrl;
	}
	public void setIconUrl(String iconUrl) {
		this.iconUrl = iconUrl;
	}
	public String getFormId() {
		return formId;
	}
	public void setFormId(String formId) {
		this.formId = formId;
	}
	public String getPid() {
		if(StringUtils.isBlank(pid)){
			pid = null;
		}
		return pid;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public String getIconCls() {
		return iconCls;
	}
	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}
	public Boolean getExpanded() {
		return expanded;
	}
	public void setExpanded(Boolean expanded) {
		this.expanded = expanded;
	}
	public Boolean getIsLeaf() {
		return isLeaf;
	}
	public void setIsLeaf(Boolean isLeaf) {
		this.isLeaf = isLeaf;
	}
	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public Boolean getIsCustom() {
		return isCustom;
	}
	public void setIsCustom(Boolean isCustom) {
		this.isCustom = isCustom;
	}
	
}
